home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / linuxcon.000 / linuxcon / linuxconf-1.6 / mailconf / conf / rulesets.s0.local.bak < prev    next >
Encoding:
Text File  |  1996-06-07  |  1.1 KB  |  30 lines

  1. ######################################
  2. ###   Ruleset 0 -- Parse Address   ###
  3. ######################################
  4.  
  5. S0
  6.  
  7. R<@>            $#local $: <>            special case error msgs
  8. R$* : $* ;        $#error $@ USAGE $: "list:; syntax illegal for recipient addresses"
  9. R<@ $+>            $#error $@ USAGE $: "user address required"
  10. R<$* : $* >        $#error $@ USAGE $: "colon illegal in host name part"
  11.  
  12. # handle numeric address spec
  13. R$* < @ [ $+ ] > $*    $: $>98 $1 < @ [ $2 ] > $3    numeric internet spec
  14. R$* < @ [ $+ ] > $*    $#smtp $@ [$2] $: $1 < @ [$2] > $3    still numeric: send
  15.  
  16. # now delete the local info -- note $=O to find characters that cause forwarding
  17. R$* < @ > $*        $@ $>97 $1        user@ => user
  18. R< @ $=w . > : $*    $@ $>97 $2        @here:... -> ...
  19. R$* $=O $* < @ $=w . >    $@ $>97 $1 $2 $3        ...@here -> ...
  20.  
  21. # handle local hacks
  22. R$*            $: $>98 $1
  23.  
  24. # short circuit local delivery so forwarded email works
  25. R$+ < @ $=w . >        $: $1 < @ $m . @ $H >        first try hub
  26. R$+ < @ $+ @ $+ >    $#smtp $@ $3 $: $1 < @ $2>            yep ....
  27. R$+ < $+ @ >        $#local $: @ $1            nope, local address
  28.  
  29. # Complex routing is appended here, followed by normal remote routing
  30.